package com.lxk.ums.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.lxk.service.ums.response.UmsUserAddressResponse;
import com.lxk.ums.domain.UmsUserAddress;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 用户收货地址视图对象 ums_user_address
 *
 * @author soda
 * @date 2024-07-11
 */
@Data
@ExcelIgnoreUnannotated
@AutoMappers(value = {
    @AutoMapper(target = UmsUserAddress.class),
    @AutoMapper(target = UmsUserAddressResponse.class)
})
public class UmsUserAddressVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "id")
    private Long id;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private BigDecimal latitude;

    /**
     * 收货人姓名
     */
    @ExcelProperty(value = "收货人姓名")
    private String realName;

    /**
     * 收货人电话
     */
    @ExcelProperty(value = "收货人电话")
    private String phone;

    /**
     * 收货人所在省ID
     */
    @ExcelProperty(value = "收货人所在省ID")
    private Long provinceId;

    /**
     * 收货人所在省
     */
    @ExcelProperty(value = "收货人所在省")
    private String province;

    /**
     * 收货人所在城市ID
     */
    @ExcelProperty(value = "收货人所在城市ID")
    private Long cityId;

    /**
     * 收货人所在市
     */
    @ExcelProperty(value = "收货人所在市")
    private String city;

    /**
     * 收货人所在区ID
     */
    @ExcelProperty(value = "收货人所在区ID")
    private Long districtId;

    /**
     * 收货人所在区
     */
    @ExcelProperty(value = "收货人所在区")
    private String district;

    /**
     * 收货人详细地址
     */
    @ExcelProperty(value = "收货人详细地址")
    private String detail;

    /**
     * 是否默认 0否 1是
     */
    @ExcelProperty(value = "是否默认 0否 1是")
    private Integer defaultStatus;

    /**
     * 街道
     */
    @ExcelProperty(value = "街道")
    private String street;


}
